package org.s.com.springioc3.model;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

@Configuration
public class UserConfig {
    public void say(){
        System.out.println("hi,UserConfig");
    }
    @Primary
    @Bean
    public User user(){
        return new User("张三");
    }
    @Bean
    public User user1(){
        return new User("李四");
    }
}
